<?php

use yii\helpers\Url;

?>

<?= Yii::$app->view->renderFile('@app/modules/admin/views/common/tab_member.php', ['tab' => 'index']) ?>
<div class="panel-content">
  <table class="ui selectable celled table">
    <input type="hidden" name="_csrf" id='csrf' value="<?= Yii::$app->request->csrfToken ?>">
    <thead>
      <tr>
        <th>会员名称</th>
        <th>会员邮箱</th>
        <th>会员电话</th>
        <th>会员单位</th>
        <th>会员职位</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>

      <?php if ($list): ?>
      <?php foreach ($list as $item): ?>
      <tr>
        <td>
          <?= $item['member_name'] ?>
        </td>
        <td>
          <?= $item['member_email'] ?>
        </td>
        <td>
          <?= $item['member_phone']?>
        </td>
        <td>
          <?= $item['member_company']?>
        </td>
        <td>
          <?= $item['member_job']?>
        </td>
        <td>
          <a href="<?= Url::to(['/admin/member/set', 'id' => $item['id']]) ?>"><i class="edit icon"></i></a>
        </td>
      </tr>
      <?php endforeach; ?>
      <?php else: ?>
      <tr>
        <td colspan="6">暂无数据</td>
      </tr>
      <?php endif; ?>
    </tbody>

  </table>
</div>
<?= Yii::$app->view->renderFile('@app/modules/admin/views/common/page.php', ['total_page' => $total_page, 'p' => $p, 'url' => '/admin/calendar/index']) ?>